#header{

   <link href="/css_js/dataTables/dataTables.bootstrap.css" rel="stylesheet">
   }#
   
   
   #body{  
   
  <div class="row">
        <div class="col-sm-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>>></h5>
                </div>
                <div class="ibox-content">
                    <div class="row form-horizontal form-group">
                        <div class="col-sm-1">
                            <a href='<?php echo SplitUrl("admin/home/noteadd") ?>' class="btn btn-primary btn-sm"><i class="fa fa-plus"></i>&nbsp;添加</a>
                        </div>

                    </div>
                    <table class="table table-striped table-bordered table-hover dataTables-example">
                        <thead>
                            <tr>
                                <th width="50">编号</th>
                                <th width="100">标题</th>                                
                                <th width="150">时间</th>
                                <th width="150">操作</th>
                            </tr>
                        </thead>
                        <tbody>
!{$attr =$output;}!

!{each $attr}
   <tr>
                                        <td>!!$num!!</td>
                                        <td><a href='!!SplitUrl("admin/home/noteview/{$v[0]}")!!'>!`title`</a></td>                                      
                                        <td>!`time`</td>
                                        <td class='center'>
                                            <a href='!!SplitUrl("admin/home/noteadd/{$v[0]}")!!'>[编辑]</a>
                                            <a href='!!SplitUrl("admin/home/notedel/{$v[0]}")!!' onclick='return confirm("您确认要删除吗？")'>[删除]</a>
                                        </td>
                                  </tr>
!{/each}                                  
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
         
      }#
      
      
      #footer{
         	<!-- jQuery Validation-->
    <script src="/css_js/jQuery Validation/jquery.validate.min.js"></script>
    <script src="/css_js/jQuery Validation/jquery.validate.unobtrusive.js"></script>
    <!-- Data Tables -->
    <script src="/css_js/dataTables/jquery.dataTables.js"></script>
    <script src="/css_js/dataTables/dataTables.bootstrap.js"></script>
    <!-- Page-Level Scripts -->
    <script>
        $(document).ready(function () {
            $('.dataTables-example').dataTable({
                "aLengthMenu": [10, 50, 100],                                    //更改显示记录数选项
                "iDisplayLength": 10                                         //默认显示的记录数
            });
        });


    </script>
        }#

